package com.edu.cdp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "订单id")
    private Integer id;

    /**
     * 
     */
    @Schema(description = "订单编号")
    private String orderNo;

    /**
     * 
     */
    @Schema(description = "员工id")
    private Integer staffId;
    @Schema(description = "用户id")
    private Integer userId;

    /**
     * 
     */
    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;

    /**
     * 
     */
    @Schema(description = "订单总价")
    private Double totalPrice;

    /**
     * 
     */
    @Schema(description = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 0表示未支付，1表示已支付
     */
    @Schema(description = "订单支付状态，0表示未支付，1表示已支付")
    private Integer payStatus;
    /**
     * 0表示已取消，1表示正常
     */
    @Schema(description = "订单状态，0表示已取消，1表示正常")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}